Fix/init workspace healing#13
Conversation
stripFrontmatter() tested startsWith('---\n') without accounting for
Windows CRLF line endings. Fixed by accepting both LF and CRLF, and
splitting on /\r?\n/ to avoid stray \r characters in the rendered body.
Fixes ai-swiss#10
[SPEC-NEUTRAL: docs-site rendering fix, no BASE spec behaviour changed]
Signed-off-by: SmilosNIJ <nicolas.jeanneret@patric.swiss>
base init only healed missing artifacts for detection.type === 'root'. Workspaces fell into the else branch which returned an empty plan, silently doing nothing even when CLAUDE.md or other tool artifacts were absent. Extended the healing condition to also cover 'workspace' so that base init proposes missing artifacts on any existing BASE, as required by FR-INIT-004. Fixes ai-swiss#12 [SPEC-NEUTRAL: no routing or write-gate behaviour changed] Signed-off-by: SmilosNIJ <nicolas.jeanneret@patric.swiss>
|
Merci pour cette contribution. Le diagnostic est juste: sur un workspace existant, Depuis votre envoi, la 1.1.0 est sortie et change un peu le paysage de cette branche:
Côté discipline, tout est en règle: commits signés (DCO), marqueurs [SPEC-NEUTRAL] cohérents, entrées CHANGELOG claires. Il ne manque que la mécanique: un rebase sur Encore merci: deux problèmes réels, réglés en une trentaine de lignes. |
Le healing de
base initne couvrait quedetection.type === "root". Les workspaces tombaient dans le else qui retourne un plan vide, sans proposer les artefacts manquants, en contradiction avec FR-INIT-004.Étendu la condition de healing à
"workspace"et ajouté un test qui prouve le comportement corrigé.Fixes #12
[SPEC-NEUTRAL: no routing or write-gate behaviour changed]